98ef34
@@ -200,7 +200,7 @@
static BigInteger readBigInteger(InputStream input) throws IOException {
    */
   static int findClosestNumBits(long value) {
     int count = 0;
-    while (value > 0) {
+    while (value != 0) {
       count++;
       value = value >>> 1;
     }
